public class Circle extends Shape {
    private double banjin;

    public double getBanjin() {
        return banjin;
    }

    public void setBanjin(double banjin) {
        this.banjin = banjin;
    }

    @Override
    public void calculateArea() {
        double area = 3.14 * this.banjin * this.banjin;
        System.out.println("圆的面积为："+area);
    }

    @Override
    public void calculatePerimeter() {

        double perimeter = 2 * 3.14 * this.banjin;
        System.out.println("圆的周长为："+perimeter);
    }
}
